import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  base:'/filmAdmin/',
  build:{
    outDir:'filmAdmin'
  },
  server:{
    host:'0.0.0.0',
    proxy:{
      '/filmAPI': {
        target: 'http://localhost:8000',
        changeOrigin: true,
        rewrite:(path)=>path.replace(/^\/filmAPI/,'')
      },
    }
  }
})
